﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Sparkle.Hosting;
using Sparkle.Demo.Model;

namespace Sparkle.Wpf.Demo.UI
{
    public class PersonController :IViewModel
    {

        private Employee _employee = new Employee();

        public Employee Employee
        {
            get { return _employee; }
            set { _employee = value; } 
        }

        #region IViewModel Members

        public IModel Model
        {
            get { return _employee; }
            set { _employee = value as Employee; }
        }

        #endregion

        public IActionResult SaveEmployee()
        {
            return new ActionResult();
        }
    }
}
